package com.reran.spring.study.homework.h02;

import com.reran.spring.study.homework.h02.model.Student;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @description:
 * @author: WangSiTeng
 * @date: 2021/12/7
 */
public class XmlApplication {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("applicationContext.xml");

        Student bean02 = (Student) context.getBean("Bean02");
        System.out.println(bean02);

        Student bean03 = (Student) context.getBean("Bean03");
        System.out.println(bean03);
    }
}
